package com.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.messaging.simp.annotation.SubscribeMapping;
import org.springframework.stereotype.Controller;

@Slf4j
@Controller
@MessageMapping("/subscribe")
public class SubscribeController {

    @SendTo("/app/subscribe/foo")
    @SubscribeMapping("/foo")
    public String handleSubscribe(String subscribeInfo){
        return "bar-subscribe";
    }

}
